package com.second.app.thread.join.sleep_unreleaselock;

/**
 * @author gyz
 * @date 2021/1/28 14:45
 */
public class C extends Thread {

    private B b;

    public C(B b) {
        this.b = b;
    }

    @Override
    public void run() {
        b.bService();
    }

    public static void main(String[] args) {
        try {
            B b = new B();
            A a = new A(b);
            a.start();
            Thread.sleep(1000);
            C c = new C(b);
            c.start();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


    }
}
